package com.zonta.finance.serivce;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zonta.finance.common.dto.PageInfo;
import com.zonta.finance.domain.form.*;
import com.zonta.finance.domain.po.AccountBook;
import com.zonta.finance.domain.vo.GetAccountBookVo;
import com.zonta.finance.domain.vo.ListAccountBookVo;

/**
 * <p>
 * 账套 服务类
 * </p>
 *
 * @author zonta
 * @since 2024-07-28
 */
public interface IAccountBookService extends IService<AccountBook> {

    /**
     * 根据id查询账套信息
     * @param id
     * @return
     */
    GetAccountBookVo getByIdVo(long id);

    /**
     * 分页查询账套
     * @param form
     * @return
     */
    PageInfo<ListAccountBookVo> getListByFrom(ListAccountBookForm form);


    /**
     * 禁用或者启用账套
     * @param form
     * @return
     */
    Boolean disable(AccountBookDisableForm form);


    /**
     * 创建租户
     * @param form
     * @return
     */
    Boolean saveByFrom(AddAccountBookForm form);
    Boolean del(DelForm form);

    Boolean updateByFrom(UpdateAccountBookForm form);
}
